<template>
  <div>
    <AppNavbar>顶部通栏</AppNavbar>
    <App-header>头部</App-header>
    <!-- 吸顶头部 -->
    <AppHeaderSticky/>
    <main class="app-body">
      <router-view></router-view>
    </main>
    <AppFooter/>
  </div>
</template>

<script>
import AppNavbar from "@/components/app-navbar.vue";
import AppHeader from "@/components/app-header.vue";
import AppFooter from "@/components/app-footer.vue";
import AppHeaderSticky from "@/components/app-header-sticky.vue";
import { useStore } from "vuex";
export default {
  name: "Layout",
  components: {
    AppNavbar,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  setup() {
    const store = useStore();
    store.dispatch("category/getList");
  }
};
</script>

<style lang="less" scoped>
.app-body {
  min-height: 600px;
}
</style>